import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		userInfo:{},
		token:'',
		musicSrc:''
		
	},
	getters:{
		userInfo(state){
			return state.userInfo
		},
		token(state){
			return state.token
		}
	},
	mutations: {
		setUserInfo(state, params){
			state.userInfo = params
		},
		setToken(state, params){
			state.token = params
		},
		setMusicSrc(state, params){
			state.userInfo = params
		},
	},
	actions: {

	},


})
